package com.open.source.easyexcel;


import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author ZonLen since on 2022/5/19 下午4:23
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class DemoSheetData {

  @ExcelProperty(value = "名称", index = 0)
  private String string;
  @ExcelProperty(value = "日期", index = 1)
  private Date date;
  @ExcelProperty(value = "金额", index = 2)
  private Double doubleData;
  @ExcelProperty(value = "数量", index = 3)
  private Integer num;
  /*
   * 忽略这个字段
   */
  @ExcelIgnore
  private String ignore;
}
